<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>结算方式修改</title>
		<link rel="stylesheet" type="text/css" href="css/public.css">
		<script language="JavaScript" charSet="UTF-8" src="js/public.js"></script>
		<script type="text/javascript" charSet="UTF-8" src="js/validate.js"></script>
		<script type="text/javascript">
			function validate()
			{	
			var code = document.getElementById("code");
			var name = document.getElementById("name");
					
			//验证结算方式代码
			if(!isNotNull(code,'结算方式代码')||!f_check_number(code,'结算方式代码')||!f_check_NumLength(code,'结算方式代码'))
				return false ;
					
			//验证结算方式名称
			if(!(isNotNull(name,'结算方式名称')&&f_check_ZhOrNumOrLett(name,'结算方式名称'))||!f_check_NumLength(name,'结算方式名称'))
				return false ;			
		}		
		</script>
	</head>

	<body>
		<div id="info_all" style="width: 284px;">
			<div id="info_top">
				结算方式修改
			</div>
			<s:form action="editSettlement.action" method="post" theme="simple" onsubmit=" return validate()">
			<div style="width: 280px; margin-top: 6px; height: 130px;">
				<table
					style="margin-top: 10px; background: #fbfbfb; color: #403040;"
					align="center">
					<tr>
						<td>
							代码*：
						</td>
						<td>
							<s:textfield name="pbaseSettlement.settlementCode" size="12" id="code"></s:textfield>
						</td>
					</tr>
					<tr>
						<td>
							名称*：
						</td>
						<td>
							<s:textfield name="pbaseSettlement.settlementName" size="12" id="name"></s:textfield>
						</td>
					</tr>
					<tr>
					<td>
						科目*：
					</td>
					<td>
						<s:hidden name="pbaseSettlement.PBaseAccountbookId" id="accountbookId"></s:hidden>
						<s:textfield name="pbaseaccountbook.accountbookName" size="12" id="accountbookName" readonly="true"></s:textfield>
						<img src="images/kookup.gif" style="cursor:pointer" onclick="openWin('accountbook!select.action','accountbook',750,700,0)">
					</td>

					<tr>
						<td align="right">

							<input type="submit" value="保存"
								onFocus="this.blur()" onmouseover="this.className='btnover'"
								onmouseout="this.className='btnout'" class="btnsize" />
						</td>
						<td align="center">
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="reset" value="返回" 
								onFocus="this.blur()" onmouseover="this.className='btnover'"
								onmouseout="this.className='btnout'" class="btnsize" onclick="javascript:history.back()"/>
						</td>
					</tr>
				</table>
			</div>
			</s:form>
		</div>
		<%--<script type="text/javascript">
					getTitle('code','结算方式');					
		</script>
	--%>
	</body>
</html>


